<template>
  <div class="Navbar">
    <div class="w">
      <div class="log"><img src="../assets/log.png" alt="" /></div>
      <el-menu mode="horizontal" text-color="1e233d" :router="true">
        <el-menu-item index="/home"> 首页</el-menu-item>
        <el-menu-item index="/agents">房产经纪 </el-menu-item>
        <el-menu-item index="/category">地产分类</el-menu-item>
        <el-menu-item index="/page">关于我们</el-menu-item>
      </el-menu>
      <el-tooltip
        class="item"
        effect="dark"
        content="全屏显示"
        placement="bottom"
      >
        <ScreenFull class="right-menu-item"></ScreenFull>
      </el-tooltip>
    </div>
  </div>
</template>

<script>
import ScreenFull from "./ScreenFull.vue";
export default {
  components: { ScreenFull },
};
</script>
<style lang="less" scoped>
.el-menu--horizontal el-menu {
  border-bottom: 0;
}
.Navbar {
  position: relative;
  background-color: #fff;
  width: 100%;
  // height: 4.167vw;
  border-bottom: 0.052vw solid #dddddf;
  .w {
    width: 62.5vw;
    display: flex;
    justify-content: center;
    .log {
      margin-right: 3.125vw;
    }
  }
  .right-menu-item {
    position: absolute;
    right: 2.604vw;

    margin-top: 0.833vw;
  }
}
</style>